﻿using System;
using System.Windows.Forms;

namespace PdfOperator
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 分割PDF
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCut_Click(object sender, EventArgs e)
        {
            FrmPdfCut frmPdfCut = new FrmPdfCut();
            frmPdfCut.ShowDialog();
        }

        private void btnMerge_Click(object sender, EventArgs e)
        {
            FrmMerge frmMerge = new FrmMerge();
            frmMerge.ShowDialog();
        }

        private void btnPdfToWord_Click(object sender, EventArgs e)
        {
            FrmPdfToWord frmPdfToWord = new FrmPdfToWord();
            frmPdfToWord.ShowDialog();
        }

        private void btnPdfToImg_Click(object sender, EventArgs e)
        {
            FrmPdfToImg pdfToImg = new FrmPdfToImg();
            pdfToImg.ShowDialog();
        }

        private void btnDecryption_Click(object sender, EventArgs e)
        {
            FrmPdfDecryption pdfDecryption = new FrmPdfDecryption();
            pdfDecryption.ShowDialog();
        }

        private void btnImgToPdf_Click(object sender, EventArgs e)
        {
            FrmImgToPdf imgToPdf = new FrmImgToPdf();
            imgToPdf.ShowDialog();
        }

        private void btnWordToPdf_Click(object sender, EventArgs e)
        {
            FrmWordToPdf wordToPdf = new FrmWordToPdf();
            wordToPdf.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FrmPdfToTxt frmPdfToTxt = new FrmPdfToTxt();
            frmPdfToTxt.ShowDialog();
        }

        private void btnOCR_Click(object sender, EventArgs e)
        {
            FrmOCR frmOCR = new FrmOCR();
            frmOCR.ShowDialog();
        }


        /// <summary>
        /// Word转图片
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnWordToImg_Click(object sender, EventArgs e)
        {
            FrmWordToImg frmWordToImg = new FrmWordToImg();
            frmWordToImg.ShowDialog();
        }
    }
}
